const { readFileSync } = require('fs');


const { lexer } = require('./lib/lexer.js');

// const input = "123  \n +456  789 0";
const file = './source.js';
const input = readFileSync(file, 'utf-8');
console.log(input)

console.log("start");
for (const token of lexer(file, input)) {
  console.log(token);
}
console.log("finish");

// console.log("start");
// console.log(JSON.stringify([...lexer(input)]));
// console.log("finish");
